package com.as.db.entity;

import javax.persistence.DiscriminatorColumn;
import javax.persistence.DiscriminatorType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

/**
 * @author Juan Carlos
 * @version 1.0
 * @created 20-may-2010 11:36:26
 */
@Entity
@Table(name="cargos")
@Inheritance(strategy=InheritanceType.SINGLE_TABLE)
@DiscriminatorColumn(name="TipoCargo", discriminatorType=DiscriminatorType.STRING)
@DiscriminatorValue("Cargo")
public class Cargo {

	private Long id;
	private boolean estado;
	private String nombre;

	@Id
	public Long getId(){
		return id;
	}

	/**
	 * 
	 * @param id
	 */
	public void setId(Long id){
		this.id = id;
	}

	public boolean isEstado(){
		return false;
	}

	/**
	 * 
	 * @param estado
	 */
	public void setEstado(boolean estado){

	}

	public String getNombre(){
		return "";
	}

	/**
	 * 
	 * @param nombre
	 */
	public void setNombre(String nombre){

	}

}